<?php
class Folder extends MY_Model {

   	var $table_name = 'folder';
	var $primary_key = 'id';
	function get_by_group_id($group_id)
    {
	    $this->db->where("{$this->primary_key} IN ($group_id)");
		$query = $this->db->get($this->table_name);
		$banner_array=array();
        foreach($query->result_array() as $row){
        	$banner_array[$row['id']] = $row['folder_name'];
        }       
        return $banner_array;
    }
}